package com.caiheng.api.entity.wxuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "user_sign_record")
public class UserSignRecord implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String transactionNo;

    private Integer userId;

    private String signDate;

    private Double integral;

    private Integer signIndex;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer state;

    /**
     *  现金类型 0 - 微信零钱 1 - 金豆
     */
    private Integer cashType;

    /**
     * 中奖金额
     */
    private BigDecimal cashMoney;
    /**
     * 支付流水号
     */
    private String tradeNo;

    /**
     * 微信openid
     */
    private String openId;


    /**
     *  支付状态
     */
    private Integer payState;
    /**
     *  错误code
     */
    private String errCodeDes;

    /**
     *  结果code
     */
    private String resultCode;
    /**
     *  请求数据
     */
    private String payStr;
    /**
     *  响应数据
     */
    private String rebackStr;

    /**
     * 备注信息
     */
    private String remark;

}
